#include "sys.h"

void delay(uint n) {
	uint i;
	while(n--)
		for(i=0; i< 628; i++);
}

void t1_init() {
	AUXR &= 0xBF;
	TMOD &= 0x0F;
	TH1 = 0xFC;
	TL1 = 0x18;
	TF1 = 0;
	TR1 = 1;
	ET1 = 1;
}
